package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    //分页查询权限
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString, String name);

    //查询所有权限
    List<Permission> findAllPermission();

    //通过用户名查询权限id
    List<Integer> findPermissionIdsByRoleName(String name);

    //添加/修改权限
    void edit(String name, Integer[] permissionIds);

    //根据id删除权限
    void deleteById(Integer id, String name);
}
